﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Miado.Extensions
{
    public static class EnumerableExtensions
    {
        public static void Each<T>(this IEnumerable<T> enumeration, Action<T> action)
        {
            if ( action == null )
            {
                throw new ArgumentNullException("action");
            }
            foreach ( var item in enumeration )
            {
                action(item);
            }
        }
    }
}
